<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">

<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>广州市昊链信息科技股份有限公司</title>
<meta name="description" content="" />
<meta name="keywords" content="index" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="renderer" content="webkit" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<meta name="apple-mobile-web-app-title" content="Amaze UI" />
<!-- <link rel="icon" type="image/png" th:href="@{/ui/i/favicon.png}" /> -->
<link rel="shortcut icon" th:href="@{/ui/img/favicon.ico}"/>
<link rel="apple-touch-icon-precomposed" th:href="@{/ui/i/app-icon72x72@2x.png}" />
<link rel="stylesheet" th:href="@{/ui/css/amazeui.min.css}" />
<link th:href="@{/plugins/bootstrap-3.3.5/css/bootstrap.min.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/bootstrap-table/css/bootstrap-table.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/bootstrapValidator.css}" rel="stylesheet" type="text/css"/>



<link rel="stylesheet" th:href="@{/ui/css/app.css}"  type="text/css"/>
<link th:href="@{/plugins/layer/skin/default/layer.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/layer.ext.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/ess.css}" rel="stylesheet" type="text/css"/>

<link th:href="@{/plugins/bootstrap-fileinput/css/fileinput.min.css}" rel="stylesheet" type="text/css"/>




<link th:href="@{/plugins/dms/css/jquery-confirm.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/tip.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/jquery-ui-1.10.4.custom.min.css}" rel="stylesheet" type="text/css"/>

<link th:href="@{/plugins/dms/css/ionicons.min.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/admin.min.css}" rel="stylesheet" type="text/css"/>
<link th:href="@{/plugins/dms/css/skin-blue.min.css}" rel="stylesheet" type="text/css"/>
<script th:src="@{/ui/js/jquery.min.js}"></script>
<script type="text/javascript" th:src="@{/plugins/ckeditor/ckeditor.js}"></script>	

</head>

<body data-type="index" class="theme-white">
	<script th:src="@{/ui/js/theme.js}"></script>
	<div class="am-g tpl-g">
		<!-- 头部 -->
		<header>
			<!-- logo -->
			<div class="am-fl tpl-header-logo">
				<a href="javascript:;"><img th:src="@{/ui/img/dms_logo2.png}" alt="" /></a>
			</div>
			<!-- 右侧内容 -->
			<div class="tpl-header-fluid">
				<!-- 侧边切换 -->
				<div class="am-fl tpl-header-switch-button am-icon-list" style="color:#333;">
					<span> </span>
				</div>
				<!-- 搜索 -->
				<!-- <div class="am-fl tpl-header-search">
					<form class="tpl-header-search-form" action="javascript:;">
						<button class="tpl-header-search-btn am-icon-search"></button>
						<input class="tpl-header-search-box" type="text"
							placeholder="搜索内容..." />
					</form>
				</div> -->
				<!-- 其它功能-->
				<div class="am-fr tpl-header-navbar">
					<ul>
						<!-- 欢迎语 -->
						<li class="am-text-sm tpl-header-navbar-welcome"><a
							href="javascript:;"><span th:text="${companyName}"></span>, <span style="color:#0077d2" th:text="${user.userName}"></span>
						</a></li>

						<!-- 退出 -->
						<li class="am-text-sm"><a th:href="@{/logout}"> <span
								class="am-icon-sign-out"></span> 退出
						</a></li>
					</ul>
				</div>
			</div>

		</header>
		
		<!-- 侧边导航栏 -->
		<div class="left-sidebar">
			<ul class="sidebar-nav">
				<li class="sidebar-nav-link"><a href="" style="padding:8px 17px;" th:href="@{/auth_index}" class="active" > <i class="am-icon-home sidebar-nav-link-logo"></i>首页</a></li>
				<li class="sidebar-nav-link" th:each="menu:${menus}" >
					<a href="javascript:;" class="sidebar-nav-sub-title" style="padding:8px 17px;"> <i class="sidebar-nav-link-logo" th:attrappend="class=' '+${menu.icon}"></i><nb th:text="${menu.name}"></nb>
						<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico" th:if="${#lists.size(menu.children)>0}"></span>
					</a>
					<ul class="sidebar-nav sidebar-nav-sub" style="display:block;" th:if="${#lists.size(menu.children)>0}">
						<li class="sidebar-nav-link" th:each="child:${menu.children}" th:if="${child.type==1}">
							<a th:onclick="'menuLoad(\''+${child.sourceUrl}+'\',this)'" th:url="${child.sourceUrl}"> 
								<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 
								<nb th:text="${child.name}"></nb>
							</a>
						</li>
						<li class="sidebar-nav-link" th:each="child:${menu.children}" th:if="${child.type==0}">
							<a href="javascript:;" class="sidebar-nav-sub-title" > <i class="sidebar-nav-link-logo" th:attrappend="class=' '+${child.icon}"></i><nb th:text="${child.name}"></nb>
								<span class="am-icon-chevron-down am-fr am-margin-right-sm sidebar-nav-sub-ico" th:if="${#lists.size(child.children)>0}"></span>
							</a>
							<ul class="sidebar-nav sidebar-nav-sub" th:if="${#lists.size(child.children)>0}">
								<li class="sidebar-nav-link" th:each="child2:${child.children}">
									<a th:onclick="'menuLoad(\''+${child2.sourceUrl}+'\',this)'"> 
									<span class="am-icon-angle-right sidebar-nav-link-logo"></span> 
									<nb th:text="${child2.name}"></nb>
								</a>
								</li>
							</ul>
						</li>
					</ul>
				</li>
			</ul>
		</div>


		<!-- 内容区域 -->
		<div class="tpl-content-wrapper">
			<div class="row-content am-cf">
				<div class="row">
					<div class="am-u-sm-12">
						<div class="widget am-cf">
							<div class="widget-head am-cf">
								<div class="widget-title am-cf"></div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div style="display: none;" id="redirectUrl" th:text="${redirectUrl}"></div>
	</div>


	<script th:src="@{/ui/js/amazeui.min.js}"></script>
	<script th:src="@{/plugins/layer/layer.js}"></script>	
	<script type="text/javascript" th:src="@{/plugins/jquery-validation/jquery.validate.min.js}"></script>
	<script type="text/javascript" th:src="@{/plugins/jquery-validation/localization/messages_zh.js}"></script>
	<script type="text/javascript" th:src="@{/plugins/bootstrap-fileinput/js/fileinput.js}"></script>
	<script th:src="@{/plugins/bootstrap-3.3.5/js/bootstrap.min.js}"></script>
	<script th:src="@{/ui/js/amazeui.min.js}"></script>
	<script th:src="@{/plugins/bootstrap-table/js/bootstrap-table.js}"></script>
	<script th:src="@{/plugins/bootstrap-table/js/locale/bootstrap-table-zh-CN.js}"></script>
	<script th:src="@{/app/app.init.table.js}"></script>
	<script th:src="@{/ui/js/app.js}"></script>
	<script th:src="@{/plugins/dms/dateFormat.js}"></script>
	<script th:src="@{/plugins/dms/app.importExcell.js}"></script>
	<script th:src="@{/plugins/dms/jquery.web.tip.js}"></script>
	<script th:src="@{/plugins/dms/jquery-ui-1.10.4.custom.min.js}"></script>
	<script th:src="@{/plugins/dms/jquery-ui.extend.js}"></script>
	<script th:inline="javascript">
		var contextRoot = /*[[@{/}]]*/ '';
		var redirectUrl = $("#redirectUrl").text().trim();
		if(redirectUrl != null && redirectUrl != ""){
			//跳转过来的时候，要将左侧对应的菜单栏显示成选中状态
			$(".sidebar-nav-link > a").removeClass("active");
			var $menuBtn = $("a[url='" + redirectUrl + "']");
			$menuBtn.addClass("active");
			$menuBtn.closest(".sidebar-nav-sub").prev().addClass("active");
			loadPage(redirectUrl);
		}
	</script>
</body>

</html>